package com.example.voucher.bo;

import com.example.voucher.contract.VoucherItemAccessor;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class VoucherItemKeyOfOpppOrgTitleAndInvoice {

    private String oppoOrgTitleFullname;
    private String invoiceCode;
    private String invoiceNo;

    public static VoucherItemKeyOfOpppOrgTitleAndInvoice of(VoucherItemAccessor data) {
        return new VoucherItemKeyOfOpppOrgTitleAndInvoice(data.getOppoOrgTitleFullname(), data.getInvoiceCode(),
            data.getInvoiceNo());
    }

}